home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Jul 89 / W0066-GC hacks-Jul89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  34 lines  |  [TEXT/GEOL]

  1. Item    7083002                         13-July-89        21:31
  2.  
  3. From:   BURBECK.S                       Burbeck, Steve
  4.  
  5. To:     D2846        -> KORNHER         Scarab Research, C Kornher, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    GC hacks
  10.  
  11. C Kornher,
  12.  
  13. Your "goodby" mechanism for managing references to objects in two places is one
  14. possible method for coping for the lack of a garbage collector.  In specialized
  15. cases it might even be preferrable to an automatic garbage collector because
  16. the programmer can specify explicit "farewell" behaviour other than just NILing
  17. the reference.  And it can extend to a "hello/goodby" scheme for handling
  18. arbitrary numbers of references (which would amount to a home brew reference
  19. counting system).  As you suggest, a multiple inheritance mixin which provided
  20. such a mechanism might be useful too, although the cloning issue you mention is
  21. one of the problems that can crop up.
  22.  
  23. The point I tried to make is not that managing multiple object references
  24. without GC is impossible.  Rather I argue that it is a tedious burden that the
  25. programmer should not have to bear.  And, because of that burden, programmers
  26. without GC do not take full advantage of the OOP paradigm.
  27.  
  28. As for awareness of garbage in MacApp's debug mode, Steve Friedrich is already
  29. working on something along those lines.
  30.  
  31. Steve Burbeck
  32.  
  33.  
  34.